/*
 * @Author       : 魏威 <1209562577@qq.com>
 * @Date         : 2022-04-23 17:52 周6
 * @Description  : mockjs
 */

import Mock from 'mockjs'

Mock.setup({
  timeout: '300-600',
})

Mock.mock('/api/user', 'get', getUser)

const getUser = () => {
  return Mock.mock({
    data: {
      data: {
        name: '@cname',
        'phone|11': '@integer(0,9)',
        city: '@city',
      },
      code: 0,
      msg: '请求成功',
    },
  })
}

export default Mock
